/* 用户发帖列表页面样式 - 100%还原设计 */

.people-comment-list {
  background-color: #f5f5f5;
  min-height: 100vh;
  position: relative;
}

/* 页面内容区域，排除顶部导航 */
.people-comment-content {
  padding: 0 16px 60px;
  max-width: 800px;
  margin: 0 auto;
}

/* 头部背景图片区域 */
.header-bg {
  position: relative;
  width: 100%;
  /* height: 400px; */
  overflow: hidden;
  /* margin-top: 220px; */
}

.bg-image {
  width: 100%;
  height: 100%;
 
  /* object-position: center; */
}

/* 用户信息区域 */
.user-info-section {
  position: relative;
  padding: 20px 16px;
  background: white;
  margin-top: -30px;
  border-radius: 20px 20px 0 0;
  z-index: 10;
}

.user-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gender-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gender-icon.male {
  background-color: #4CAF50;
  color: white;
}

.gender-icon.female {
  background-color: #E91E63;
  color: white;
}

.user-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-left: 4px;
}

/* 发帖列表标题 */
.section-title {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  margin-bottom: 8px;
}

.title-bar {
  width: 4px;
  height: 20px;
  background-color: #3087ea;
  border-radius: 2px;
  margin-right: 12px;
}

.title-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 发帖列表 */
.post-list {
  padding: 0 16px 20px;
}

.post-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

.post-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
}

.post-stats {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.stat-item {
  font-size: 12px;
  color: #666;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 12px;
}

/* 加载状态 */
.post-loading, .no-posts {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* 加载更多按钮 */
.load-more {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  background: #3087ea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(48, 135, 234, 0.3);
}

.load-more-btn:hover:not(:disabled) {
  background: #1e5f99;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(48, 135, 234, 0.4);
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 全局加载和错误状态 */
.loading, .error {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
  background: white;
  margin: 20px;
  border-radius: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .people-comment-content {
    padding: 0 12px 60px;
  }
  
  .header-bg {
    height: 200px;
  }
  
  .user-info-section {
    padding: 16px;
    margin-top: -25px;
  }
  
  .user-avatar {
    width: 70px;
    height: 70px;
  }
  
  .gender-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .user-name {
    font-size: 16px;
  }
  
  .post-card {
    padding: 14px;
  }
  
  .post-title {
    font-size: 15px;
  }
  
  .post-content {
    font-size: 13px;
  }
  
  .post-stats {
    gap: 12px;
  }
  
  .stat-item {
    font-size: 11px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .people-comment-content {
    padding: 0 8px 60px;
  }
  
  .header-bg {
    height: 200px;
  }
  
  .user-info-section {
    padding: 12px;
    margin-top: -20px;
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .gender-icon {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  
  .user-name {
    font-size: 15px;
  }
  
  .section-title {
    padding: 12px;
  }
  
  .title-text {
    font-size: 15px;
  }
  
  .post-list {
    padding: 0 12px 16px;
  }
  
  .post-card {
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .post-title {
    font-size: 14px;
  }
  
  .post-content {
    font-size: 12px;
  }
  
  .post-stats {
    gap: 10px;
  }
  
  .stat-item {
    font-size: 10px;
    padding: 2px 5px;
  }
  
  .load-more-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
